//
//  FiveAppraiseDetailCell.m
//  XJMCustomer
//
//  Created by Mr.hu on 2017/10/16.
//  Copyright © 2017年 Mr.hu. All rights reserved.
//

#import "FiveAppraiseDetailCell.h"

@implementation FiveAppraiseDetailCell

- (void)setData:(NSDictionary *)dic{
    
    if (dic[@"nick_name"]) {
        self.AppraiseName.text = dic[@"nick_name"];
    }
    
    if (dic[@"headurl"]) {
        
        [self.AppraiseHeadImage sd_setImageWithURL:dic[@"headurl"] placeholderImage:[UIImage imageNamed:@"touxiang"] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
            //在这里输出下error
            NSLog(@"errored:%@",error);
        }];
    }
    
    if (dic[@"content"]) {
        self.AppraiseComment.text = dic[@"content"];
    }
    if (dic[@"add_time"]) {
        self.AppraiseTimeLab.text = dic[@"add_time"];
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
